package dd.prog2.exercises.set02.sequences2;

public class Range implements iSequence {
	private int min, max;

	public Range(int min, int max) {
		this.min = min;
		this.max = max;
	}

	@Override
	public boolean hasNext() {
		if (min <= max)
			return true;
		return false;
	}

	@Override
	public int nextElement() {
		if (min > max)
			return min;
		return min++;
	}

}
